/**
 * 
 */
package com.chocolateforogs.writersnb.res;

import java.util.ResourceBundle;

/**
 * @author Matthew
 *
 */
public final class ResourceLoader {

	public static ResourceBundle getClassResources(final Class<?> clazz) {
		final String name = clazz.getCanonicalName();
		
		return ResourceBundle.getBundle(name);
	}
	
	public static ResourceBundle getResourcedObjectResources(final ResourcedObject obj) {
		final String name = obj.getClass().getPackage().getName() + "." + obj.getResourceName();
		return ResourceBundle.getBundle(name);
	}
}
